# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=linux-exploit-suggester
pkgver=32.9db2f5a
pkgrel=6
groups=('blackarch' 'blackarch-recon')
pkgdesc='A Perl script that tries to suggest exploits based OS version number.'
url='https://github.com/PenturaLabs/Linux_Exploit_Suggester'
arch=('any')
license=('GPL2')
depends=('perl')
makedepends=('git')
source=("$pkgname::git+https://github.com/PenturaLabs/Linux_Exploit_Suggester.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 Linux_Exploit_Suggester.pl "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

